Method and apparatus for connecting to external device

ABSTRACT

An apparatus and method of connecting an external device are provided. The method includes calculating a time duration during which the external device is located within a detectable range from the apparatus; connecting the apparatus to the external device when the calculated time duration exceeds a critical value; and transmitting data that is currently displayed in the apparatus to the connected external device, wherein the transmitted data is executed in the connected external device.

PRIORITY

This application is a Continuation of U.S. application Ser. No.12/861,602, filed on Aug. 23, 2010, which claims priority to KoreanPatent Application No. 10-2009-0077872, filed on Aug. 21, 2009, in theKorean Intellectual Property Office, the entire content of each of whichis incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention generally relates to a method and apparatus forconnecting to an external device, and more particularly, to a method andapparatus for connecting to or disconnecting from a device by using botha distance limit and a time limit.

2. Description of the Related Art

Currently, due to the development of various network and electronictechnologies, many Consumer Electric (CE) products that interact witheach other during their operations have been created. However, there isstill a need for CE products that interact with each other with agreater level of user convenience.

SUMMARY OF THE INVENTION

To solve the above and/or other problems, the present invention providesa method and apparatus for connecting to or disconnecting from a deviceby using both a distance limit and a time limit.

According to an aspect of the present invention, a method of connectingan external device to an apparatus is provided. The method includescalculating a time duration during which the external device is locatedwithin a detectable range from the apparatus; connecting the apparatusto the external device when the calculated time duration exceeds acritical value; and transmitting data that is currently displayed in theapparatus to the connected external device, wherein the transmitted datais executed in the connected external device.

According to an aspect of the present invention, an apparatus forconnecting to an external device is provided. The apparatus includes atime calculation unit configured to calculate a time duration duringwhich the external device is located within a detectable range from theapparatus; a control unit configured to connect the apparatus to theexternal device when the calculated time duration exceeds a criticalvalue; and a communications unit configured to transmit data that iscurrently displayed in the apparatus to the connected external device,wherein the transmitted data is executed in the connected externaldevice.

According to an aspect of the present invention, a non-transitorycomputer readable recording medium having recorded thereon a program forexecuting a method of connecting an external device to an apparatus isprovided. The method includes calculating a time duration during whichthe external device is located within a detectable range from theapparatus; connecting the apparatus to the external device when thecalculated time duration exceeds a critical value; and transmitting datathat is currently displayed in the apparatus to the connected externaldevice, wherein the transmitted data is executed in the connectedexternal device.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and advantages of the present inventionwill become more apparent by describing in detail embodiments thereofwith reference to the attached drawings in which:

FIG. 1 is a block diagram illustrating an apparatus for connecting to ordisconnecting from an external device according to an embodiment of thepresent invention;

FIG. 2 is a flowchart illustrating a method of connecting to an externaldevice according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating a method of connecting an externaldevice to an apparatus that requests a connection, according to anembodiment of the present invention;

FIG. 4 is a flowchart illustrating a method of connecting an externaldevice to an apparatus that is to receive a connection request,according to an embodiment of the present invention;

FIGS. 5A-5C are example screen displays of a mobile phone and atelevision for illustrating an example of the external device connectionmethod of FIG. 2 according to an embodiment of the present invention;

FIG. 6 is a flowchart illustrating a method of disconnecting from anexternal device according to an embodiment of the present invention;

FIG. 7 is a flowchart illustrating a method of disconnecting an externaldevice from an apparatus that requests a disconnection, according to anembodiment of the present invention; and

FIG. 8 is a flowchart illustrating a method of disconnecting an externaldevice from an apparatus that is to receive a disconnection request,according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Hereinafter, the present invention will be described in detail byexplaining embodiments of the invention with reference to the attacheddrawings. Like reference numerals in the drawings denote like elements.In the following description of the present invention, a detaileddescription of known functions and configurations incorporated hereinwill be omitted for clarity and conciseness.

FIG. 1 is a block diagram illustrating an apparatus for connecting to ordisconnecting from an external device according to an embodiment of thepresent invention. The apparatus of FIG. 1 is first described withregards to a case where the apparatus connects to an external device, asfollows. Referring to FIG. 1, an external device connection apparatus110 includes a distance calculation unit 112, a time calculation unit114, a control unit 116, and a communications unit 118.

The distance calculation unit 112 detects a location of an externaldevice 120 and calculates a separation distance between the externaldevice 120 and the external device connection apparatus 110. When theexternal device 120 is within a recognizable range of the externaldevice connection apparatus 110, the distance calculation unit 112 maycalculate the separation distance. The distance calculation unit 112calculates the separation distance to be “0” when the external device120 is in contact with the external device connection apparatus 110.When the separation distance is “0”, the external device 120 and theexternal device connection apparatus 110 may be connected to each otherby a predetermined communications network so as to be recognizable byeach other. For example, a predetermined sensor or an objectidentification apparatus such as a Radio Frequency IDentification (RFID)tag is attached to the external device connection apparatus 110. Theexternal device connection apparatus 110 scans for the external device120 according to a predetermined time interval set by a manufacturer.The distance calculation unit 112 may also be limited to only detectingwhether the external device 120 exists within the recognizable range.

The time calculation unit 114 calculates a time during which theexternal device 120 exists within a reference range of the externaldevice connection apparatus 110 when the calculated separation distancebetween the external device 120 and the external device connectionapparatus 110 is within the reference range. More specifically, the timecalculation unit 114 calculates the time starting from a time when theexternal device 120 is located within the reference range. If theexternal device 120 travels outside of the reference range, thecalculated time is reset. In another embodiment, when the separationdistance is considered to be in the reference range only when theexternal device connection apparatus 110 is in contact with the externaldevice 120, the time calculation unit 114 calculates the time startingfrom a time when the external device connection apparatus 110 contactsthe external device 120. In order to detect the time during which theexternal device 120 is within the reference range, the external deviceconnection apparatus 110 periodically scans for the external device 120according to a predetermined time interval set by the manufacturer.

The controller 116 determines whether the time calculated by the timecalculation unit 114 exceeds a predetermined critical value. If thecalculated time exceeds the predetermined critical value, the externaldevice connection apparatus 110 grants a connection right to theexternal device 120 via the communications unit 118. When the connectionright is granted, the external device connection apparatus 110 and theexternal device 120 are connected to each other. The external deviceconnection apparatus 110 and the external device 120 may be connected inan ad-hoc or infra connection method. The ad-hoc connection method maydirectly perform communications between devices without using an accesspoint. The infra connection method may be one of various wireless LocalArea Network (LAN) communication methods and may include performingcommunications between devices via an access point. According to thepresent embodiment of the present invention, either of the ad-hocconnection method or the infra connection method may be used at anymoment.

Once the external device connection apparatus 110 and the externaldevice 120 connected, the connection continues until the connection isremoved, even if the separation distance between the external device 120and the external device connection apparatus 110 is greater than thereference range. When the external device 120 is not portable, theexternal device connection apparatus 110 may connect with a remotecontroller (not shown) in order to remotely control the external device120.

After the external device 120 connects to the external device connectionapparatus 110, the external device 120 transmits data (contents)currently displayed on the external device 120 to the external deviceconnection apparatus 110. After receiving the data via thecommunications unit 118, the control unit 116 displays the received dataon a display unit (not shown) of the external device connectionapparatus 110. When the external device 120 transmits an applicationthat is currently in operation, the control unit 116 may operate thereceived application.

The apparatus of FIG. 1 is now described with regards to a case where anapparatus disconnects from an external device. In the present example,it is assumed that the external device connection apparatus 110 and theexternal device 120 are already in a connected state.

The distance calculation unit 112 detects the location of the externaldevice 120 and calculates a separation distance between the externaldevice connection apparatus 110 and the external device 120. When theexternal device 120 is within the recognizable range of the externaldevice connection apparatus 110, the distance calculation unit 112 maycalculate the separation distance. The distance calculation unit 112calculates the separation distance to be “0” when the external device120 is in contact with the external device disconnection apparatus 110.

The time calculation unit 114 calculates a time during which theexternal device 120 exists within the reference range of the externaldevice connection apparatus 100 starting from a time when the separationdistance between the external device 120 and the external deviceconnection apparatus 110 is within the reference range. If the externaldevice 120 travels outside the reference range, a calculated time isreset. According to another embodiment of the present invention, whenthe separation distance is considered to be in the reference range onlywhen the external device connection apparatus 110 is in contact with theexternal device 120, the time calculation unit 114 calculates the timestarting from when the external device connection apparatus 110 contactsthe external device 120.

The controller 116 determines whether the time calculated by the timecalculation unit 114 exceeds a predetermined critical value. If thecalculated time exceeds a predetermined critical value, the control unit116 disconnects from the external device 120. Alternatively, theexternal device connection apparatus 110 grants a disconnection right tothe external device 120. Then, the external device connection apparatus110 is disconnected from the external device 120.

In this case, when the external device 120 is not portable, the externaldevice connection apparatus 110 disconnects from a remote controller(not shown) for remotely controlling the external device 120.

FIG. 2 is a flowchart illustrating a method of connecting to an externaldevice according to an embodiment of the present invention. Referring toFIG. 2, in step 210, the distance that the external device is from anexternal device connection apparatus, i.e., a separation distance, iscalculated. When the external device connection apparatus and theexternal device are in contact with each other, the separation distanceis calculated to be “0”. In this case, the external device connectionapparatus and the external device may be connected via a predeterminedcommunications network so as to be recognizable by each other. Forexample, a predetermined sensor or an object recognition apparatus suchas an RFID tag may be attached to the external device connectionapparatus. The external device connection apparatus scans for theexternal device according to a predetermined time interval, which may beset by a manufacturer.

In step 220, whether the separation distance is within a reference rangeis determined. When the separation distance is within the referencerange, step 230 is performed. When the separation distance is not withinthe reference range, the operation returns to step 210. The referencerange may be determined by the manufacturer. However, a method accordingto embodiments of the present invention may be performed withoutcalculating the actual separation distance between the externalconnection apparatus and the external device. When the external deviceis within a predetermined allowable range from the external deviceconnection apparatus, the external device may be determined to be withinthe reference range. According to the present embodiment of the presentinvention, the reference range may be set such that the external deviceis considered to be within the reference range only when the externaldevice connection apparatus is in contact with the external device.

In step 230, a time during which the external device is located withinthe reference range is calculated. For example, this time is calculatedstarting from when the external device connection apparatus is incontact with the external device. To detect the time during which theexternal device is within the reference range, the external deviceconnection apparatus continues to check for the external deviceaccording to a predetermined time interval set by the manufacturer. Thepredetermined time interval in step 210 may not be the same as thepredetermined time interval in step 230.

In step 240, a determination of whether the calculated time exceeds apredetermined critical value. When the time calculated in step 230exceeds the predetermined critical value, step 250 is performed. If thetime calculated in step 230 has not exceeded the predetermined criticalvalue, step 210 is performed. For example, when the external device ismoved outside the reference range before a critical time is reached,step 210 is performed. When the external device exists within thereference range until the critical time is reached, step 250 isperformed.

In step 250, the external device connects to the external deviceconnection apparatus. The external device connection apparatus and theexternal device may be connected in an ad-hoc or infra connectionmethod. The ad-hoc connection method allows communications to bedirectly performed between devices without use of an access point. Theinfra connection method may be one of various wireless LAN communicationmethods, and the infra connection method may allow communications to beperformed between devices via an access point. According to the presentembodiment of the present invention, either of the ad-hoc connectionmethod and the infra connection method may be used at any moment.

After a connection is established between the external device connectionapparatus and the external device, even if the external device travelsbeyond the reference range, the external device connection apparatus andthe external device may still remain continuously connected.

Although, according to the method illustrated in FIG. 2, the externaldevice connection apparatus detects the external device in order toconnect to the external device, according to other embodiments of thepresent invention, the same technical characteristics may be applied toan alternate case in which the external device detects the externaldevice connection apparatus in order to connect to the external deviceconnection apparatus.

FIG. 3 is a flowchart illustrating a method of connecting an externaldevice to an apparatus that requests a connection, according to anembodiment of the present invention. Referring to FIG. 3, in step 310,when the apparatus requesting the connection to the external device islocated within a predetermined distance range from the external devicefor a predetermined time period, the apparatus requesting the connectionto the external device transmits a connection request signal to theexternal device.

In step 320, the apparatus requesting the connection to the externaldevice receives, from the external device, a connection confirmationsignal for granting a connection request. More specifically, when theexternal device confirms the connection request, the apparatusrequesting connection receives a connection from the external device.

In step 330, the apparatus requesting the connection to the externaldevice is connected to the external device.

In step 340, the apparatus connected to the external device transmits,to the external device, data that is currently displayed in theapparatus requesting the connection to the external device. For example,when an image or a motion picture is displayed in the apparatusconnected to the external device, the data of the image or motionpicture displayed by the apparatus connected to the external device istransmitted to the external device. Alternatively, the apparatusconnected to the external device may transmit an application beingexecuted in the apparatus requesting connection to the external deviceto the external device so that the application may be executed in theexternal device.

FIG. 4 is a flowchart illustrating a method of connecting an externaldevice to an apparatus that is to receive a connection request,according to an embodiment of the present invention. Referring to FIG.4, in step 410, when the external device is located within apredetermined distance range of the apparatus for a predetermined timeperiod, the apparatus receives a connection request signal from theexternal device.

In step 420, the apparatus grants a connection right to the externaldevice, in response to the connection request signal of the externaldevice. In step 430, the apparatus connects to the external device. Instep 440, the apparatus receives data that is currently displayed by theexternal device. For example, when an image or a motion picture isdisplayed in the external device, the apparatus receives the data of theimage or motion picture being displayed by the external device.Alternatively, the apparatus may receive an application executed in theexternal device and may then execute the application.

FIGS. 5A-5C are example screen displays of a mobile phone and atelevision for illustrating an example of the external device connectionmethod of FIG. 2 according to an embodiment of the present invention.Referring to FIG.5A, the external device, for example, a mobile phone510, and the external device connection apparatus, for example, atelevision 520, respectively display different contents. Referring toFIG. 5B, when the mobile phone 510 is located within a predeterminedreference range from the television 520 for a predetermined time period,the mobile 510 and the television 520 enter into a connection state.Referring to FIG. 5C, content (data) displayed in the mobile phone 510is transmitted to the television 520 and thus the content of the mobilephone 510 is displayed in the television 520.

FIG. 6 is a flowchart illustrating a method of disconnecting an externaldevice according to an embodiment of the present invention. Referring toFIG. 6, in step 610, of the distance between the external device and anexternal device connection apparatus connected to the external device,that is, a separation distance is calculated. When the external deviceconnection apparatus and the external device are in contact with eachother, the separation distance is calculated to be “0”.

In step 620, whether the separation distance is within a reference rangeis determined. When the separation distance is within the referencerange, step 630 is performed. However, when the separation distance isgreater than the reference range step 610 is performed. According toembodiments of the present embodiment, the reference range may be suchthat the external device is considered to be in the reference range onlywhen the external device connection apparatus is in contact with theexternal device.

In step 630, a time during which the connected external device islocated within the reference range is calculated. For example, when theexternal device connection apparatus is in contact with the externaldevice, the time during which the connected external device is locatedwithin the reference range is calculated.

In step 640, a determination of whether the calculated time exceeds apredetermined critical value is performed. When the time exceeds thepredetermined critical value, step 650 is performed. However, when thetime does not exceed the predetermined critical value, step 610 isperformed.

In step 650, the external device disconnects from the external deviceconnection apparatus. The reference range, the time critical value, andthe time interval of the disconnection method in FIG. 6 are the same asthose in FIG. 2.

FIG. 7 is a flowchart illustrating a method for disconnecting anexternal device from an apparatus that requests a disconnection,according to an embodiment of the present invention. Referring to FIG.7, in step 710, when the apparatus requesting the disconnection islocated within a predetermined distance range from the external devicefor a predetermined time period, the apparatus requesting thedisconnection transmits a disconnection request signal to the externaldevice.

In step 720, the apparatus requesting the disconnection receives, fromthe external device, a disconnection confirmation signal for granting adisconnection request. More specifically, when the external deviceconfirms the disconnection request, the apparatus requesting thedisconnection receives a disconnection right from the external device.

In step 730, the apparatus requesting the disconnection is disconnectedfrom the external device.

FIG. 8 is a flowchart illustrating a method of disconnecting an externaldevice from an apparatus that is to receive a disconnection request,according to an embodiment of the present invention. Referring to FIG.8, in step 810, when the external device is located within apredetermined distance range for a predetermined time period, theapparatus receives a disconnection request signal from the externaldevice.

In step 820, the apparatus grants a disconnection right to the externaldevice, in response to the disconnection request signal of the externaldevice. In step 830, the apparatus is disconnected from the externaldevice.

The present invention can also be embodied as computer readable codes ona computer readable recording medium. Computer readable recordingmediums are any data storage device that can store data readable by acomputer system. Examples of the computer readable recording mediuminclude Read-Only Memory (ROM), Random-Access Memory (RAM), Compact Disc(CD)-ROMs, magnetic tapes, floppy disks, optical data storage devices,etc. The computer readable recording mediums can also be distributedover network coupled computer systems so that the computer readable codeis stored and executed in a distributed fashion. Functional programs,codes, and code segments for accomplishing the present invention can beeasily construed by programmers skilled in the art to which the presentinvention pertains.

Although the present invention has been particularly shown and describedwith reference to embodiments thereof, it will be understood by thoseskilled in the art that various changes in form and details may be madetherein without departing from the spirit and scope of the invention asdefined by the appended claims.

What is claimed is:
 1. A method of connecting an external device to anapparatus, the method comprising: calculating a time duration duringwhich the external device is located within a detectable range from theapparatus; connecting the apparatus to the external device when thecalculated time duration exceeds a critical value; and transmitting datathat is currently displayed in the apparatus to the connected externaldevice; wherein the transmitted data is executed in the connectedexternal device.
 2. The method of claim 1, wherein the time duration iscalculated when the apparatus contacts the external device.
 3. Themethod of claim 1, further comprising, after the external device isconnected to the apparatus, continuously maintaining the connection whena distance between the external device and the apparatus is greater thanthe detectable range.
 4. The method of claim 1, wherein calculating thetime comprises calculating the time duration when a distance between theapparatus and the external device is within a reference range.
 5. Themethod of claim 1, further comprising: receiving, by the apparatus, datathat is being displayed on the external device; and displaying thereceived data.
 6. An apparatus for connecting to an external device, theapparatus comprising: a time calculation unit configured to calculate atime duration during which the external device is located within adetectable range from the apparatus; a control unit configured toconnect the apparatus to the external device when the calculated timeduration exceeds a critical value; and a communications unit configuredto transmit data that is currently displayed in the apparatus to theconnected external device; wherein the transmitted data is executed inthe connected external device.
 7. The apparatus of claim 6, wherein thetime calculation unit calculates the time duration when the apparatuscontacts the external device.
 8. The apparatus of claim 6, wherein,after the apparatus is connected to the external device, the apparatuscontinuously maintains the connection when a distance between theexternal device and the apparatus is greater than the detectable range.9. The apparatus of claim 6, wherein the time calculation unit isfurther configured to calculate the time duration when a distancebetween the apparatus and the external device is within a detectablerange.
 10. The apparatus of claim 6, wherein the communications unit isfurther configured to receive data that is being displayed on theexternal device when the apparatus is connected to the external device,and wherein the control unit displays the received data.
 11. Anon-transitory computer readable recording medium having recordedthereon a program for executing a method of connecting an externaldevice to an apparatus, the method comprising: calculating a timeduration during which the external device is located within a detectablerange from the apparatus; connecting the apparatus to the externaldevice when the calculated time duration exceeds a critical value;transmitting data that is currently displayed in the apparatus to theconnected external device; wherein the transmitted data is executed inthe connected external device.